package ldk.easytouch.example;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.provider.Settings;

import ldk.easytouch.example.helper.RecentTaskHelper;
import ldk.easytouch.utils.ETLog;

public class MainActivity extends Activity{
    @SuppressWarnings("unused")
    private static final String TAG = "MainActivity";

    private RecentTaskHelper mRecentTaskHelper;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        startService(new Intent(this, MainService.class));
        ETLog.v(TAG, "onCreate");
/*        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                mRecentTaskHelper = RecentTaskHelper.getInstance();
                ETLog.v(TAG, "show running progress");
                mRecentTaskHelper.cleanBackgroundProgress();
                ETLog.v(TAG, "end show running progress");
            }
        }, 2000);*/
//        startActivity(new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS));
        finish();
    }
}
